#include <gtest/gtest.h>  // googletest header file

#include "student.h"

TEST(Student, should_introduce_student)
{
    int classNumber = 2;
    Student *zhangsan = (Student *)malloc(sizeof(Student));

    Student_Init(zhangsan, 18, "Zhangsan", 2);

    Person* personZhangsan = &(zhangsan->__Person);//重点

    char expectIntroduceOf_Zhangsan[100] = "My name is Zhangsan. I am 18 years old. I am a student of class 2.";
    char introduceOf_Zhangsan[100];

    personZhangsan->Introduce(personZhangsan,introduceOf_Zhangsan);

    ASSERT_STREQ(expectIntroduceOf_Zhangsan, introduceOf_Zhangsan);
}
